Feather painting by action
Code:
OnMouseDown = init; function init () {// create a feather, and set each feather parameter and call the function feather = createEmptyMovieClip ("f" + I, 10000 + I ++); feather. swapDepths (Math. random () * 10000);
[Plain]/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)* Copyright and version Declaration of the program* All rights
Name
Abs
Category
Mathematical functions
Prototype
Abs (number)
Parameters
Must be selected. The number argument is a valid numeric expression of any type
"Return value"
Type of same number
"Exception/Error"
No
Description
Returns the absolute value
The use of Cos function
function function: Returns the cosine of the given angle. This is consistent with the knowledge of mathematics.
function syntax: COS (number)
Number is the angle to which the cosine is required, expressed in radians.
Cos function
Returns the cosine of a corner.
Cos(number)
The number argument can be any valid numeric expression that represents a corner as radians.
Description
The Cos function takes a corner and returns the ratio on both sides of the
Name
Abs
Category
Mathematical functions
Prototype
Abs (number)
Parameters
Must be selected. The number argument is a valid numeric expression of any type
"Return value"
Type of same number
"Exception/Error"
No
Description
Returns the
1. formula: abs (number) indicates the absolute number of abs (number) returned. For example: abs (5) return 5abs (-5) return 52, formula: ceil (number) that is, ceil (number) return a number based on the input, the input parameter can be a
1. Coordinate system:Flash coordinate system and mathematical coordinate system: the X axis is the same, and the y axis is the opposite.[Mathematical coordinate system][Coordinate system in Flash]2. Conversion between Angle and Radian:(1) radians:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.